'''
常用的错误
'''
class Error:
    def __init__(self, code, err):
        self.code = code
        self.err = err
    
    def tostring(self):
        return str(self.err)




A_B_IMG_SIZE_NOT_EQUAL =  Error(201,Exception("前后时序图片尺寸不一致"))

IMG_SIZE_NOT_LEGAL = Error(202,Exception("输入图像尺寸不合法"))

MISS_PARAM = Error(203,Exception("缺少必要的参数"))

INVALID_REQUEST = Error(204,Exception("无效的请求"))